<?php

declare(strict_types=1);

namespace Plugin\Attractions\AttractionManagement\Model\Attraction_user;

use Hyperf\Database\Model\SoftDeletes;
use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id 用户ID
 * @property string $username 用户名
 * @property string $avatar 用户头像
 * @property int $times 用户登录次数
 * @property string $open_id 微信OpenID
 * @property int $status 用户状态: 1正常, 2禁用
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property string $deleted_at 
 */
class AttractionUser extends Model
{
    use SoftDeletes;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'attraction_user';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'username', 'avatar', 'times', 'open_id', 'status', 'created_at', 'updated_at', 'deleted_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'times' => 'integer', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
